package net.xju.service.impl;

import net.xju.dao.AppointmentDao;
import net.xju.entity.Appointment;
import net.xju.service.AppointmentService;

import java.util.List;

public class AppointmentServiceImpl implements AppointmentService {
    private AppointmentDao appointmentDao = new AppointmentDao();

    @Override
    public List<Appointment> getAppointmentsByConsultantId(int consultantId) {
        return appointmentDao.getAppointmentsByConsultantId(consultantId);
    }

    @Override
    public boolean insert(Appointment appointment) {
        return appointmentDao.insert(appointment);
    }
}